#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpSocket>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();
    void on_pbConnect_clicked();
    void socketConnected();
    void newData();

private:
    void closeEvent(QCloseEvent *);

    Ui::MainWindow *ui;
    QTcpSocket *arduinoConnection;
};

#endif // MAINWINDOW_H
